package com.lyw.db.dao

import androidx.room.Dao
import androidx.room.Insert
import androidx.room.Query
import com.lyw.db.entites.Knowledge
import com.lyw.db.entites.PoemTag

@Dao
interface PoemTagDao {
    @Query("SELECT * FROM poem_tag")
    fun getAllPoemTags(): List<PoemTag>

    @Query("SELECT id FROM poem_tag WHERE title=:title")
    fun getPoemIdByTitle(title:String):Int

    @Insert
    fun insertAll(vararg poemTag: PoemTag)

    @Insert
    fun insertAll( poemTags: List<PoemTag>)
}